home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Tele / C / Comet2.1.3.cpt / include / custom.h < prev    next >
Text File  |  1988-04-15  |  3KB  |  80 lines

  1. /*  Copyright 1983 by the Massachusetts Institute of Technology  */
  2.  
  3. /*
  4.     Copyright Cornell University 1986.  All rights are reserved.
  5.  
  6.     As of 4/10/86:
  7.     This source file may have no changes from the M.I.T original
  8.     other than this notice; but it has been tested as part of 
  9.     Cornell's Aztec-C port.  See notice.h
  10. */
  11.  
  12. /* 5/13/87 kevin removed LNMS structure to use 1 Handle to save host name/address pairs */
  13. /* 12/7/87 kevin added net_mask to info stored in custrsrc */
  14. /* 4/15/88 kevin added telhighwin var */
  15.  
  16. /* Custom Structure Version 11 */
  17.  
  18. #include <types.h>
  19.  
  20. #define    CVERSION     12                /* current version number                */
  21. #define MAXLDEF        20                /* maximum number of local host names    */
  22. #define MAXNLEN        20                /* maximum length of a host name        */
  23.  
  24.  
  25. /*    the custom resource structure                                            */
  26.  
  27. struct custrsrc 
  28. {
  29.     unsigned    cr_iver;            /* internal version number                 */
  30.     unsigned    cr_buf_cnt;            /* # of buffers to allocate                */
  31.     unsigned    cr_buf_siz;            /* size of each buffer                    */
  32.     unsigned    cr_ip_siz;            /* Max IP packet size                    */
  33.     unsigned    cr_tcp_siz;            /* Max TCP packet size                    */
  34.     unsigned    cr_1custom;            /* various flags                        */
  35.     long        cr_me;                /* skeletal my-internet-address         */
  36.     unsigned    cr_telwin;            /* telnet window size                     */
  37.     unsigned    cr_tellowwin;        /* telnet low window size                 */
  38.     unsigned    cr_tmoffset;        /* time zone offset in minutes             */
  39.     long        cr_net_mask;            /* net mask */
  40.     unsigned    cr_telhighwin;        /* telnet high window size                 */
  41. };
  42.  
  43. extern Handle    hcr_tmlabel;            /* string for the time name            */
  44. extern Handle    hcr_defgw;                /* default gateway */
  45.  
  46. /* The custom structure itself. */
  47.  
  48. struct custom 
  49. {
  50.     unsigned    c_iver;                /* internal version number             */
  51.     unsigned    c_buf_cnt;            /* # of buffers to allocate            */
  52.     unsigned    c_buf_siz;            /* size of each buffer                */
  53.     unsigned    c_ip_siz;            /* Max IP packet size                */
  54.     unsigned    c_tcp_siz;            /* Max TCP packet size                */
  55.     unsigned    c_1custom;            /* various flags                    */
  56.     long        c_me;                /* skeletal my-internet-address     */
  57.     unsigned    c_telwin;            /* telnet window size                 */
  58.     unsigned    c_tellowwin;        /* telnet low window size             */
  59.     int            c_tmoffset;            /* time zone offset in minutes         */
  60.     char *    c_tmlabel;            /* time zone label                     */
  61.     char        c_password[MAXNLEN];/* user's pasword                    */
  62.     long        c_defgw;            /* default gatway                    */
  63.     long        c_net_mask;            /* net ans subnet address mask        */
  64.     unsigned    c_telhighwin;        /* telnet high window size             */
  65. };
  66.  
  67. extern Handle hhosttab;    /* pointer to CR-separated list of host names/addresses */
  68. #define HOSTID 1
  69.  
  70. /* TELNET custom bits in c_1custom */
  71.  
  72. #define    BSDEL        0x01    /* BS/DEL key setting UNUSED kevin */
  73. #define    WRAP        0x02    /* wrap-around */
  74. #define    NLSET        0x04    /* newline mode default kevin */
  75. #define    FINGER_ON    0x08    /* finger server default */
  76. #define    SUPDUP_WRAP    0x10    /* supdup wrap default UNUSED kevin */
  77. #define    TN_TFTP_ASK    0x20    /* telnet tftp server asking default UNUSED kevin */
  78.  
  79. extern struct custom custom;
  80.